# while 循环
""""a = 1
while a < 10:
    if a <= 5:
        print(a, "目前a小于5")
        a += 1
    else:
        print("a大于5")
        a += 1
a = 2"""
"""------------------------------------------------------------------------------------------------"""
# 练习:计算1-100之间的偶数
#afsfsfsf
a = 0
b = 0
c = 0
while a <= 100:
    if a % 2 == 0 and a != 0:
        #   print("0-100之间的偶数有" + str(a))
        b += 1
        c += a
    a += 1;
print("100以内偶数的和为" + str(c))
    # print("0-100以内的偶数的总数是"+str(b))

"""while a <=100:
    if a%2:
        b+=a;
    a+=1
print(b)"""